package com.schoolvisitors.dto;

import lombok.Data;

import java.util.List;


import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

@Data
public class BorrowInstrumentFromUpDto {

    @NotEmpty(message = "仪器名称不能为空")
    @Size(max = 32, message = "仪器名称不能超过32个字符")
    private String instrumentName;

    @NotEmpty(message = "备注不能为空")
    @Size(max = 255, message = "备注不能超过255个字符")
    private String remark;

    @NotNull(message = "审核人ID不能为空")
    private Long reviewerId;

    @NotEmpty(message = "请上传至少一张仪器图片")
    private List<@NotEmpty(message = "仪器图片不能为空") String> instrumentImgs;

    @NotNull(message = "借用房间ID不能为空")
    private Long borrowRoomId;

    @NotNull(message = "归还房间ID不能为空")
    private Long returnRoomId;
}

